import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    themeColor: '20a0ff',
    activeName: '' // 当前的模块tab名称
  },
  mutations: {
    setThemeColor (state, color) {
      this.state.themeColor = color;
    },
    setActiveName (state, name) {
      this.state.activeName = name;
    }
  },
  actions: {

  }
})
